<html>
<#include "/common/head.ftl">
<body>

<div id="wrapper" class="toggled">
    <#--边栏sidebar-->
    <#include "/common/nav.ftl">

    <#--主要内容content-->
    <div id="page-content-wrapper">
        <div class="container-fluid">
            <div class="row clearfix">
                <div class="col-md-12 column">
                    <form role="form" method="post" action="/sell/seller/product/save">
                        <div class="form-group">
                            <label>商品名字</label>
                            <input type="text" name="productName" value="${(productInfo.productName)!""}"
                                   class="form-control"/>
                        </div>
                        <div class="form-group">
                            <label>商品单价</label>
                            <input type="number" name="productPrice" value="${(productInfo.productPrice)!""}"
                                   class="form-control"/>
                        </div>
                        <div class="form-group">
                            <label>商品库存</label>
                            <input type="number" name="productStock" value="${(productInfo.productStock)!""}"
                                   class="form-control"/>
                        </div>
                        <div class="form-group">
                            <label>商品描述</label>
                            <input type="text" name="productDescription" value="${(productInfo.productDescription)!""}"
                                   class="form-control"/>
                        </div>
                        <div class="form-group">
                            <label>商品图片</label>
                            <input type="text" name="productIcon" value="${(productInfo.productIcon)!""}"
                                   class="form-control"/>
                        </div>
                        <div class="form-group">
                            <label>类目编号</label>
                            <select name="categoryType" class="form-control">
                                <#list categoryList as category>
                                    <option value="${category.categoryType}"
                                            <#if (productInfo.categoryType)?? && productInfo.categoryType == category.categoryType>
                                                selected
                                            </#if>
                                    >${category.categoryName}
                                    </option>
                                </#list>
                            </select>
                        </div>
                        <input hidden name="productId" type="text" value="${(productInfo.productId)!""}">
                        <button type="submit" class="btn btn-default">提交</button>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>

</body>
</html>